import cv2
def existFace(frame):
    classifier = cv2.CascadeClassifier("./haarcascades/haarcascade_frontalface_alt2.xml")
    faces = classifier.detectMultiScale(frame,
                                1.01,
                                5,
                                0,
                                (100,100),
                                (1000,1000))
    if len(faces) == 1:
        return True
    else:
        return False